import http from '@/utils/common/http'

/**
 * 获取用户个人界面信息
 * */
export function getUserInfo (data) {
  return http({
    method: 'post',
    url: '/user/user/getUserInfo',
    header: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    data
  })
}

/**
 * 普通密码方式登录
 * */
export function saveUserInfo (data) {
  return http({
    method: 'post',
    url: '/user/user/saveUser',
    header: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    data
  })
}

/**
 * 获取用户个人界面信息
 * */
export function getBindExtendAccount (data) {
  return http({
    method: 'post',
    url: '/auth/user/getBindAccount',
    header: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    data
  })
}

/**
 * 获取用户个人界面信息
 * */
export function bindExtendAccount (data) {
  return http({
    method: 'post',
    url: '/auth/user/saveBindAccount',
    header: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    data
  })
}
